\hypertarget{usbc__device_8h}{
\section{usbc\-\_\-device.h \-File \-Reference}
\label{usbc__device_8h}\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}}
}


\-U\-S\-B\-C \-Device \-Driver header file.  


{\ttfamily \#include \char`\"{}compiler.\-h\char`\"{}}\*
{\ttfamily \#include \char`\"{}preprocessor.\-h\char`\"{}}\*
\subsection*{\-Data \-Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structavr32__usbc__udesc__sizes__t}{avr32\-\_\-usbc\-\_\-udesc\-\_\-sizes\-\_\-t}
\item 
struct \hyperlink{structavr32__usbc__udesc__bk__ctrl__stat__t}{avr32\-\_\-usbc\-\_\-udesc\-\_\-bk\-\_\-ctrl\-\_\-stat\-\_\-t}
\item 
struct \hyperlink{structavr32__usbc__udesc__ep__ctrl__stat__t}{avr32\-\_\-usbc\-\_\-udesc\-\_\-ep\-\_\-ctrl\-\_\-stat\-\_\-t}
\item 
struct \hyperlink{structusb__desc__table__t}{usb\-\_\-desc\-\_\-table\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{\-Defines}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device \-I\-P properties}
{\em \-These macros give access to \-I\-P properties }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga4f3fc518ef0e369cc01a7bf7c6516844}{\-U\-D\-D\-\_\-get\-\_\-endpoint\-\_\-max\-\_\-nbr}()~(((\-Rd\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-ufeatures, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-F\-E\-A\-T\-U\-R\-E\-S\-\_\-\-E\-P\-T\-\_\-\-N\-B\-R\-\_\-\-M\-A\-X\-\_\-\-M\-A\-S\-K) -\/ 1) \& ((1 $<$$<$ \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-F\-E\-A\-T\-U\-R\-E\-S\-\_\-\-E\-P\-T\-\_\-\-N\-B\-R\-\_\-\-M\-A\-X\-\_\-\-S\-I\-Z\-E) -\/ 1)) + 1)
\begin{DoxyCompactList}\small\item\em \-Get maximal number of endpoints. \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device speeds management}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_gaf272a0d4210ee260d0a267bba460fb0c}{udd\-\_\-low\-\_\-speed\-\_\-enable}()~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-L\-S\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em \-Enable/disable device low-\/speed mode. \end{DoxyCompactList}\item 
\#define \hyperlink{group__udd__group_ga6471bbaea371bb9bb2654333236c9f29}{udd\-\_\-low\-\_\-speed\-\_\-disable}()~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-L\-S\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gaedea021600d07a71a1672b393c550c39}{\-Is\-\_\-udd\-\_\-low\-\_\-speed\-\_\-enable}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-L\-S\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em \-Test if device low-\/speed mode is forced. \end{DoxyCompactList}\item 
\#define \hyperlink{group__udd__group_gae014bb3adcdf212fd61196307be88802}{udd\-\_\-high\-\_\-speed\-\_\-enable}()~do \{ \} while (0)
\item 
\#define \hyperlink{group__udd__group_ga7adf42a2ec72e7f2429a9b02799333af}{udd\-\_\-high\-\_\-speed\-\_\-disable}()~do \{ \} while (0)
\item 
\#define \hyperlink{group__udd__group_ga977c78f164f32fa910802518aab7b0ed}{\-Is\-\_\-udd\-\_\-full\-\_\-speed\-\_\-mode}()~true
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device vbus management}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_gaf80c5f873a9d926ab3324b6a91dfd872}{udd\-\_\-enable\-\_\-vbus\-\_\-interrupt}()~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-C\-O\-N\-\_\-\-V\-B\-U\-S\-T\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gad11887e29c08ad9cc6d67e3e6b4f9e9a}{udd\-\_\-disable\-\_\-vbus\-\_\-interrupt}()~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-C\-O\-N\-\_\-\-V\-B\-U\-S\-T\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gaed8ac44b2b2082c1797e873e120867c8}{\-Is\-\_\-udd\-\_\-vbus\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-C\-O\-N\-\_\-\-V\-B\-U\-S\-T\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga10bc6d84d73e1ecccae3318d4098c41a}{\-Is\-\_\-udd\-\_\-vbus\-\_\-high}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbsta, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-S\-T\-A\-\_\-\-V\-B\-U\-S\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga6f962d911e1863d143614d1ee01df89a}{\-Is\-\_\-udd\-\_\-vbus\-\_\-low}()~(!\-Is\-\_\-udd\-\_\-vbus\-\_\-high())
\item 
\#define \hyperlink{group__udd__group_gac6886b5956566ddb81744bbcfb27c08d}{udd\-\_\-ack\-\_\-vbus\-\_\-transition}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbstaclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-S\-T\-A\-C\-L\-R\-\_\-\-V\-B\-U\-S\-T\-I\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga8761342ea2dc32e0f0252508b1f7c47a}{udd\-\_\-raise\-\_\-vbus\-\_\-transition}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbstaset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-S\-T\-A\-S\-E\-T\-\_\-\-V\-B\-U\-S\-T\-I\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gafb6dd005e6fef2574f054b8fe5e8d008}{\-Is\-\_\-udd\-\_\-vbus\-\_\-transition}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-usbsta, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-S\-B\-S\-T\-A\-\_\-\-V\-B\-U\-S\-T\-I\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C device attach control}
{\em \-These macros manage the \-U\-S\-B\-C \-Device attach. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga1863dacf593fb3c1b5f275b48f1e529a}{udd\-\_\-detach\-\_\-device}()~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-D\-E\-T\-A\-C\-H\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em detaches from \-U\-S\-B bus \end{DoxyCompactList}\item 
\#define \hyperlink{group__udd__group_ga55686d13fc7b23f4945f527f0dd15906}{udd\-\_\-attach\-\_\-device}()~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-D\-E\-T\-A\-C\-H\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em attaches to \-U\-S\-B bus \end{DoxyCompactList}\item 
\#define \hyperlink{group__udd__group_gaf8c45e04066c136079dd296c2e28bb62}{\-Is\-\_\-udd\-\_\-detached}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-D\-E\-T\-A\-C\-H\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em test if the device is detached \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C device bus events control}
{\em \-These macros manage the \-U\-S\-B\-C \-Device bus events. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_gacc4b62140d09930dd38b10f766d30517}{udd\-\_\-initiate\-\_\-remote\-\_\-wake\-\_\-up}()~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-R\-M\-W\-K\-U\-P\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gaf3dab5078ad3286ac92d7b3a8cf8933a}{\-Is\-\_\-udd\-\_\-pending\-\_\-remote\-\_\-wake\-\_\-up}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-R\-M\-W\-K\-U\-P\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}
\end{Indent}
\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga0f538482266ca447cbfcfb9a5eb2bd64}{udd\-\_\-enable\-\_\-remote\-\_\-wake\-\_\-up\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-U\-P\-R\-S\-M\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gad53f9dce1280a2b17218090cde573368}{udd\-\_\-disable\-\_\-remote\-\_\-wake\-\_\-up\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-U\-P\-R\-S\-M\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga2a4c5935ae7ae26e8edf63a27d3d30d9}{\-Is\-\_\-udd\-\_\-remote\-\_\-wake\-\_\-up\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-U\-P\-R\-S\-M\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga39c4b005d3194988c8969ea622eed23d}{udd\-\_\-ack\-\_\-remote\-\_\-wake\-\_\-up\-\_\-start}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-U\-P\-R\-S\-M\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga8e9d45e299d7a26b65bf8a98c8e27546}{udd\-\_\-raise\-\_\-remote\-\_\-wake\-\_\-up\-\_\-start}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-U\-P\-R\-S\-M\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gacfe73866ea62b418fe69fa061ef6edd3}{\-Is\-\_\-udd\-\_\-remote\-\_\-wake\-\_\-up\-\_\-start}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-U\-P\-R\-S\-M\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_gad7f806ed3fbecb776acc5dcedcf81f3e}{udd\-\_\-enable\-\_\-resume\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-E\-O\-R\-S\-M\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga8a97ab6519a34ae7d9135fe70c6719e4}{udd\-\_\-disable\-\_\-resume\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-E\-O\-R\-S\-M\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga3cad513921d4190558aa7744d672bfc3}{\-Is\-\_\-udd\-\_\-resume\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-E\-O\-R\-S\-M\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gabc25572243c4ab4600a1a870b4b6028b}{udd\-\_\-ack\-\_\-resume}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-E\-O\-R\-S\-M\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga32a47c6752a2cac56874691e34728ba5}{udd\-\_\-raise\-\_\-resume}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-E\-O\-R\-S\-M\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga1b2ed8acdccb1fa2d295610349979fe5}{\-Is\-\_\-udd\-\_\-resume}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-E\-O\-R\-S\-M\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga1b192f6b945ae10b536deca002c2a1aa}{udd\-\_\-enable\-\_\-wake\-\_\-up\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-W\-A\-K\-E\-U\-P\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gaeac784d6d727d949449042d979d9a2ff}{udd\-\_\-disable\-\_\-wake\-\_\-up\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-W\-A\-K\-E\-U\-P\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gaeab0126ceda728b5e100675a1368219a}{\-Is\-\_\-udd\-\_\-wake\-\_\-up\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-W\-A\-K\-E\-U\-P\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gadf64e48ecbcfc8082ac438156d43311d}{udd\-\_\-ack\-\_\-wake\-\_\-up}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-W\-A\-K\-E\-U\-P\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga6b5a8ee09140c447b077c66c2e7668fe}{udd\-\_\-raise\-\_\-wake\-\_\-up}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-W\-A\-K\-E\-U\-P\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga27099aac5c46e62ca82775e957ae52a4}{\-Is\-\_\-udd\-\_\-wake\-\_\-up}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-W\-A\-K\-E\-U\-P\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_gaa4f338d7c02eb47691d55ea26a0b32d7}{udd\-\_\-enable\-\_\-reset\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-E\-O\-R\-S\-T\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga4f19c394e2352deb16c13e15c34c59ff}{udd\-\_\-disable\-\_\-reset\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-E\-O\-R\-S\-T\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gae0697533a9d3b806351a6a075100dd9f}{\-Is\-\_\-udd\-\_\-reset\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-E\-O\-R\-S\-T\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gae28a4338a4679d081090a536f7bd3ee1}{udd\-\_\-ack\-\_\-reset}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-E\-O\-R\-S\-T\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga6c25f895374748a59eaa9a84356a5d58}{udd\-\_\-raise\-\_\-reset}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-E\-O\-R\-S\-T\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga8bcb98dbb6f1255a0f25ae73035927db}{\-Is\-\_\-udd\-\_\-reset}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-E\-O\-R\-S\-T\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga307066f7fb27b90020e50f7311b37ff6}{udd\-\_\-enable\-\_\-sof\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-S\-O\-F\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga1210d31d31bcbcaf8374ac4db1521306}{udd\-\_\-disable\-\_\-sof\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-S\-O\-F\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gacc090cdf3bd05a4da6888695fd95786b}{\-Is\-\_\-udd\-\_\-sof\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-S\-O\-F\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga0b4140471f2e53d93cfe7f05ebd907d7}{udd\-\_\-ack\-\_\-sof}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-S\-O\-F\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga3747765066014e9bbde1bb263334c8a0}{udd\-\_\-raise\-\_\-sof}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-S\-O\-F\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga5b5fcaa7cfa64de404ff9a3a257839a9}{\-Is\-\_\-udd\-\_\-sof}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-S\-O\-F\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_gac175ccc890008605691939957098a246}{udd\-\_\-frame\-\_\-number}()~(\-Rd\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udfnum, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-F\-N\-U\-M\-\_\-\-F\-N\-U\-M\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga6f519fdc7583b259eb11d33555813182}{\-Is\-\_\-udd\-\_\-frame\-\_\-number\-\_\-crc\-\_\-error}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udfnum, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-F\-N\-U\-M\-\_\-\-F\-N\-C\-E\-R\-R\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\paragraph*{}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__udd__group_ga298cc43d16d7d9609d58adffe696b5db}{udd\-\_\-enable\-\_\-suspend\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-S\-U\-S\-P\-E\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga1470fba0dbc68e890140d806277ee8c1}{udd\-\_\-disable\-\_\-suspend\-\_\-interrupt}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-S\-U\-S\-P\-E\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga2a9c882005f263ea9e181273bf316e27}{\-Is\-\_\-udd\-\_\-suspend\-\_\-interrupt\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-S\-U\-S\-P\-E\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{group__udd__group_ga9a61b0228571cf2c0225c86f3e3a618e}{udd\-\_\-ack\-\_\-suspend}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-C\-L\-R\-\_\-\-S\-U\-S\-P\-C\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_ga997d9f1f31efd62ddcce775a4f40a0bd}{udd\-\_\-raise\-\_\-suspend}()~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udintset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-S\-E\-T\-\_\-\-S\-U\-S\-P\-S\-\_\-\-M\-A\-S\-K)
\item 
\#define \hyperlink{group__udd__group_gadfe9e8bbc2b3afefb19bcfd99db8b3fd}{\-Is\-\_\-udd\-\_\-suspend}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-S\-U\-S\-P\-\_\-\-M\-A\-S\-K))
\end{DoxyCompactItemize}

\begin{Indent}\paragraph*{\-U\-S\-B\-C device address control}
{\em \-These macros manage the \-U\-S\-B\-C \-Device address. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_a45ad65d26b8b1c07d438d6a953356adc}{udd\-\_\-enable\-\_\-address}()~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em enables \-U\-S\-B device address \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a21a5e9eb44ea5fd15eb4e9c7603e77c6}{udd\-\_\-disable\-\_\-address}()~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em disables \-U\-S\-B device address \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a745c69fca49259a55f097b89be266d9d}{\-Is\-\_\-udd\-\_\-address\-\_\-enabled}()~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{usbc__device_8h_a5c6819ba3af1c84a7d7d33f059678e24}{udd\-\_\-configure\-\_\-address}(addr)~(\-Wr\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-U\-A\-D\-D\-\_\-\-M\-A\-S\-K, addr))
\begin{DoxyCompactList}\small\item\em configures the \-U\-S\-B device address \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a7abf42f819560e7da3b51d0ab6b73c33}{udd\-\_\-get\-\_\-configured\-\_\-address}()~(\-Rd\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-U\-A\-D\-D\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em gets the currently configured \-U\-S\-B device address \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device endpoint drivers}
{\em \-These macros manage the common features of the endpoints. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_a944621405e4cada2a5758a20c890cc73}{\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y}(reg, index)~((\&\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-reg)\mbox{[}(index)\mbox{]})
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Devcice endpoint configguration}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_ad03d0e3d03b41ad352bcfb1e20618cf3}{udd\-\_\-enable\-\_\-endpoint}(ep)~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em enables the selected endpoint \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a78448032b7215b5c3168c2219609f439}{udd\-\_\-disable\-\_\-endpoint}(ep)~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em disables the selected endpoint \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_afe6904680ed0cc545a96efa2ca0d1a43}{\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em tests if the selected endpoint is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ad104658f522a2947eac3ea93ec460ca9}{udd\-\_\-reset\-\_\-endpoint}(ep)
\begin{DoxyCompactList}\small\item\em resets the selected endpoint \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a73bc67a85520896969c812e3002b565e}{\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint}(ep)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-R\-S\-T0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em tests if the selected endpoint is being reset \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a6cb296a52400f97a43b55679e95f0d1c}{udd\-\_\-configure\-\_\-endpoint\-\_\-type}(ep, type)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-M\-A\-S\-K, type))
\begin{DoxyCompactList}\small\item\em configures the selected endpoint type \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9038cc39fe44400c771b159f3ffe19e7}{udd\-\_\-get\-\_\-endpoint\-\_\-type}(ep)~((\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-M\-A\-S\-K))$>$$>$\-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-O\-F\-F\-S\-E\-T)
\begin{DoxyCompactList}\small\item\em gets the configured selected endpoint type \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_adf9bd49f7579a94166a10c4c6645f5de}{udd\-\_\-configure\-\_\-endpoint\-\_\-direction}(ep, dir)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K, dir))
\begin{DoxyCompactList}\small\item\em enables the bank autoswitch for the selected endpoint \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a1e9ebc6e500cfa654b2da58c235f1464}{udd\-\_\-get\-\_\-endpoint\-\_\-direction}(ep)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em gets the configured selected endpoint direction \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ae9f80db7ea2439ef1fd11eaf0edceb91}{\-Is\-\_\-udd\-\_\-endpoint\-\_\-in}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K))
\item 
\#define \hyperlink{usbc__device_8h_a9fc78147cab52be8b840973ef29d0076}{udd\-\_\-format\-\_\-endpoint\-\_\-size}(size)~(32 -\/ clz(((uint32\-\_\-t)min(max(size, 8), 1024) $<$$<$ 1) -\/ 1) -\/ 1 -\/ 3)
\item 
\#define \hyperlink{usbc__device_8h_aed35d93ac28f5309919a8c6988baee47}{udd\-\_\-configure\-\_\-endpoint\-\_\-size}(ep, size)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-S\-I\-Z\-E\-\_\-\-M\-A\-S\-K, udd\-\_\-format\-\_\-endpoint\-\_\-size(size)))
\begin{DoxyCompactList}\small\item\em configures the selected endpoint size \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a16fa9454335f40118cc84efaa229c002}{udd\-\_\-get\-\_\-endpoint\-\_\-size}(ep)~(8 $<$$<$ \-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-S\-I\-Z\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em gets the configured selected endpoint size \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5256fbd33ecb07fd5c1651f26d1b0313}{udd\-\_\-configure\-\_\-endpoint\-\_\-bank}(ep, bank)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-B\-K\-\_\-\-M\-A\-S\-K, bank))
\begin{DoxyCompactList}\small\item\em configures the selected endpoint number of banks \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_abfae08b406c33eff07a328c0a1bf9f48}{udd\-\_\-get\-\_\-endpoint\-\_\-bank}(ep)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-B\-K\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em gets the configured selected endpoint number of banks \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ab0dd6d762bb7c07b3c085bfa77d7094a}{udd\-\_\-configure\-\_\-endpoint}(ep, type, dir, size, bank)
\begin{DoxyCompactList}\small\item\em configures selected endpoint in one step \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ab535c15be47ca7b41b9af4fcc01cdc71}{udd\-\_\-control\-\_\-direction}()~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0(\-E\-P\-\_\-\-C\-O\-N\-T\-R\-O\-L), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-C\-T\-R\-L\-D\-I\-R\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em returns the control direction \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_af8215756ce1ffa8c2ae43bd44cd1b5ca}{udd\-\_\-reset\-\_\-data\-\_\-toggle}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-S\-T\-D\-T\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em resets the data toggle sequence \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aee6c06d0d3f8abf8cb14b4948782e6dd}{\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-S\-T\-D\-T\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if the data toggle sequence is being reset \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_abed983b720337e2ed5884d78e4519948}{udd\-\_\-data\-\_\-toggle}(ep)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-D\-T\-S\-E\-Q\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em returns data toggle \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device control endpoint interrupts}
{\em \-These macros control the endpoints interrupts. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_afeee27d730e49f7182fb7e1b40649947}{udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt}(ep)~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-E\-P0\-I\-N\-T\-E\-S\-\_\-\-M\-A\-S\-K $<$$<$ (ep))
\begin{DoxyCompactList}\small\item\em enables the selected endpoint interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a8b172bafee7421956c3d195b8c30da92}{udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt}(ep)~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-E\-P0\-I\-N\-T\-E\-C\-\_\-\-M\-A\-S\-K $<$$<$ (ep))
\begin{DoxyCompactList}\small\item\em disables the selected endpoint interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9b246cff0fb38d50d154b1e56dbd95fc}{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-E\-P0\-I\-N\-T\-E\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em tests if the selected endpoint interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa12b636c365b3590aaab1685f5051e9d}{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt}(ep)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-E\-P0\-I\-N\-T\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))
\begin{DoxyCompactList}\small\item\em tests if an interrupt is triggered by the selected endpoint \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a2626b75423f2c54799bbeaf2c1fc816f}{udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number}()
\begin{DoxyCompactList}\small\item\em returns the lowest endpoint number generating an endpoint interrupt or \-M\-A\-X\-\_\-\-P\-E\-P\-\_\-\-N\-B if none \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device control endpoint errors}
{\em \-These macros control the endpoint errors. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_a53559e240871eefce5727db759814f67}{udd\-\_\-enable\-\_\-stall\-\_\-handshake}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables the \-S\-T\-A\-L\-L handshake \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ab3ba0a5c25072f412af76337a9f78b49}{udd\-\_\-disable\-\_\-stall\-\_\-handshake}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables the \-S\-T\-A\-L\-L handshake \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa00f503d09cc11156d7bcd275316fcc2}{\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-T\-A\-L\-L handshake request is running \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa8f1423774570cc453649c43adffcde9}{\-Is\-\_\-udd\-\_\-stall}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-T\-A\-L\-L sent \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a80549eb8ff7c759ce3a0616ca2ff4e9a}{udd\-\_\-ack\-\_\-stall}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-S\-T\-A\-L\-L sent \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a18f2dcfdb7e62260eed0568dd4aae35e}{udd\-\_\-raise\-\_\-stall}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-S\-T\-A\-L\-L sent \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5d4273d7708a52f01c6c25ce1159d753}{udd\-\_\-enable\-\_\-stall\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-S\-T\-A\-L\-L sent interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a7fec1c00b97a76215582b9245675a16f}{udd\-\_\-disable\-\_\-stall\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-S\-T\-A\-L\-L sent interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a328c29b9b3f54284bd7e2da8648e929c}{\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-T\-A\-L\-L sent interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a7a9485a3763e6f605fbe0d699eb769e0}{\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-A\-M\-A\-C\-C\-E\-R\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if a \-R\-A\-M access error occur \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa662342744f36999b1e7f7b427e421e6}{\-Is\-\_\-udd\-\_\-nak\-\_\-out}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-A\-K\-O\-U\-T\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-N\-A\-K \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9a6aad5b3ec3f719a107a804c1c6157f}{udd\-\_\-ack\-\_\-nak\-\_\-out}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-N\-A\-K\-O\-U\-T\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-N\-A\-K \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a04078a2d8249cf03c22ffad483e3e7dc}{udd\-\_\-raise\-\_\-nak\-\_\-out}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-A\-K\-O\-U\-T\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-N\-A\-K \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5b4d46dfc6148b45b9505c33ed3133e9}{udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-A\-K\-O\-U\-T\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-N\-A\-K \-O\-U\-T interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_afebfb5c623a09ce5a760ac43ba54a583}{udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-A\-K\-O\-U\-T\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-N\-A\-K \-O\-U\-T interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa556fab3c46354bde3d2cdd02da700d1}{\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-A\-K\-O\-U\-T\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-N\-A\-K \-O\-U\-T interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a058bc49fc189ef865fe226cfcea4020b}{\-Is\-\_\-udd\-\_\-nak\-\_\-in}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-A\-K\-I\-N\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-N\-A\-K \-I\-N received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9c7ff845a31408640d21ab1abe2a3ac3}{udd\-\_\-ack\-\_\-nak\-\_\-in}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-N\-A\-K\-I\-N\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-N\-A\-K \-I\-N received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_add81f92998f841a45c0bbe3d4f13c6fa}{udd\-\_\-raise\-\_\-nak\-\_\-in}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-A\-K\-I\-N\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-N\-A\-K \-I\-N received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_adbc5e8ee2fe92c01b938b09d6cbee804}{udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-A\-K\-I\-N\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-N\-A\-K \-I\-N interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a1f2beebb3753a3b3e86aaaf93cb8b958}{udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-A\-K\-I\-N\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-N\-A\-K \-I\-N interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a21d072c549f508c0bfa11877325ec6ca}{\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-A\-K\-I\-N\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-N\-A\-K \-I\-N interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a989c61a1ef03a3821e17a66a6ca47801}{udd\-\_\-ack\-\_\-overflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-O\-V\-E\-R\-F\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks endpoint isochronous overflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a1f5a81edfbab51799c3a60c2a24e14c8}{udd\-\_\-raise\-\_\-overflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-O\-V\-E\-R\-F\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises endpoint isochronous overflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a19a8109ed558b53a6c163ad4a1625ba1}{\-Is\-\_\-udd\-\_\-overflow}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-O\-V\-E\-R\-F\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if an overflow occurs \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a7ef25a39e90ff903696c0c6b0cf4b573}{udd\-\_\-enable\-\_\-overflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-O\-V\-E\-R\-F\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables overflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aaae544aa935567496d6195ed4cd71ccc}{udd\-\_\-disable\-\_\-overflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-O\-V\-E\-R\-F\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables overflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a0eea027a8784874c6d9176c228d0bcfd}{\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-O\-V\-E\-R\-F\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if overflow interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_adbe43b87bdd82e175d8dd4a70022f77d}{udd\-\_\-ack\-\_\-underflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-U\-N\-D\-E\-R\-F\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks endpoint isochronous underflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ac62a73b450f839afd0fa9373a20b6572}{udd\-\_\-raise\-\_\-underflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-U\-N\-D\-E\-R\-F\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises endpoint isochronous underflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a69cf9244b156e14a178ba1413f3efbc8}{\-Is\-\_\-udd\-\_\-underflow}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-U\-N\-D\-E\-R\-F\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if an underflow occurs \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5e6cd558da44828750e27cc78dba86e3}{udd\-\_\-enable\-\_\-underflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables underflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9414bf12df2ab83c146e18db3c185771}{udd\-\_\-disable\-\_\-underflow\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables underflow interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a162bf1796a65a0165303957fd2430970}{\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-S\-T\-P\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if underflow interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ad6e25ea1e124ebe5ea9a6a9eb680b542}{\-Is\-\_\-udd\-\_\-crc\-\_\-error}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a73241164f2b850d0a7e5a76f013c1922}{udd\-\_\-ack\-\_\-crc\-\_\-error}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a09c5d13c3b160178e0a1f18f50cc435b}{udd\-\_\-raise\-\_\-crc\-\_\-error}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a4bcf4430699577add8b0470749897371}{udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a63e2a523826ed3ac39ffec2bf5e430d7}{udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a0a42c1b5a4d7f8231ea015f5ce9e652c}{\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt is enabled \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device control endpoint banks}
{\em \-These macros control the endpoint banks. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_ac70a8020e42c03943b2e5cb247be6a27}{udd\-\_\-ack\-\_\-fifocon}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-F\-I\-F\-O\-C\-O\-N\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em tests if endpoint read allowed \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9b7eb71e23cbc004ff5e14d1b89ed5b5}{\-Is\-\_\-udd\-\_\-fifocon}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-F\-I\-F\-O\-C\-O\-N\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-F\-I\-F\-O\-C\-O\-N bit set \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aedfa79f446bab64bee7ba639045cae3f}{udd\-\_\-disable\-\_\-nyet}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-Y\-E\-T\-D\-I\-S\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Enable \-N\-Y\-E\-T. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a19f3613c3c1aa1603c4c9f3e932be408}{udd\-\_\-enable\-\_\-nyet}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-Y\-E\-T\-D\-I\-S\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Disable \-N\-Y\-E\-T. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a7808ee92bc219ec6bc161749fd8d8848}{udd\-\_\-enable\-\_\-busy\-\_\-bank0}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-B\-U\-S\-Y0\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Enable busy on bank0. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ae00d2879deb19a5b70b0c1bf0cbabc2e}{udd\-\_\-disable\-\_\-busy\-\_\-bank0}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-B\-U\-S\-Y0\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Disable busy on bank0. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a9f195135bbeaa0aceb54dada54387a46}{udd\-\_\-enable\-\_\-busy\-\_\-bank1}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-B\-U\-S\-Y1\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Enable busy on bank1. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a0e41b2c169fc026153b7be55266b5966}{udd\-\_\-disable\-\_\-busy\-\_\-bank1}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-B\-U\-S\-Y1\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em \-Disable busy on bank1. \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5c6d18d773abb7af0c1aa987006d7f86}{udd\-\_\-nb\-\_\-busy\-\_\-bank}(ep)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em returns the number of busy banks \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_add031c6e7450e25a69b04416514d7696}{udd\-\_\-current\-\_\-bank}(ep)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-C\-U\-R\-R\-B\-K\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em returns the number of the current bank \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a21f6ff4bffcd208971419ac13427bc61}{udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-K\-I\-L\-L\-B\-K\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em kills last bank \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a4de9e6f0520cb387d2db1bd71c91762b}{\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-K\-I\-L\-L\-B\-K\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if last bank killed \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a64b05771e325d90e9ff6497a84c35e62}{udd\-\_\-force\-\_\-bank\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em forces all banks full (\-O\-U\-T) or free (\-I\-N) interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aa522e5e1d2f1d10c0e594b45cf7b8497}{udd\-\_\-unforce\-\_\-bank\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em unforces all banks full (\-O\-U\-T) or free (\-I\-N) interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_affdee8df03c3087459da437f64409de1}{udd\-\_\-enable\-\_\-bank\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables all banks full (\-O\-U\-T) or free (\-I\-N) interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_af9b9ee869302039a5a8e97186579eaaf}{udd\-\_\-disable\-\_\-bank\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables all banks full (\-O\-U\-T) or free (\-I\-N) interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a6008ad2528d55b1830466e59e37ebc3a}{\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if all banks full (\-O\-U\-T) or free (\-I\-N) interrupt enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a329b1cde520fa81858ee360533d760c0}{\-Is\-\_\-udd\-\_\-short\-\_\-packet}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a583fd943c8a96f8561887cd996d6c05f}{udd\-\_\-ack\-\_\-short\-\_\-packet}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ac795af3e94f1202e6aab7b149632ab90}{udd\-\_\-raise\-\_\-short\-\_\-packet}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a535f35b986fc195eb6a014cf9cfa8204}{udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a5d5276a39a695e7fc7c72bd6dc68ba4d}{udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a4fb8e430cbdb750273e87a48b7e544c5}{\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt is enabled \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B\-C \-Device control endpoint transfer}
{\em \-These macros control the endpoint transfers. }\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_a35421aaff45c60a7174d7082db2941f4}{\-Is\-\_\-udd\-\_\-setup\-\_\-received}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-X\-S\-T\-P\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-E\-T\-U\-P received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_abf07f0798c3538c4306af26f1eb9ce2b}{udd\-\_\-ack\-\_\-setup\-\_\-received}(ep)~((\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-I\-C\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em acks \-S\-E\-T\-U\-P received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a832e9941b31f7d7ba52cc0a2eb31e848}{udd\-\_\-raise\-\_\-setup\-\_\-received}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-S\-E\-T\-U\-P received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ad50aa9e7b28504019f64a660d20d5160}{udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-S\-E\-T\-U\-P received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a668c58ec343f368da78ec9f15cae7373}{udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt}()~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr(\-E\-P\-\_\-\-C\-O\-N\-T\-R\-O\-L) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-S\-E\-T\-U\-P received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a4b4e77c5697efedbaa6ccef4f86dafcd}{\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-S\-T\-P\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-S\-E\-T\-U\-P received interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a096c5fa1b85a21a8509f060f8dd6760c}{\-Is\-\_\-udd\-\_\-out\-\_\-received}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-X\-O\-U\-T\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a155aeea7bacc9d819976155da32ea20c}{udd\-\_\-ack\-\_\-out\-\_\-received}(ep)~((\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-R\-X\-O\-U\-T\-I\-C\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em acks \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a8aa1844030b75833ccab407a93f23c5b}{udd\-\_\-raise\-\_\-out\-\_\-received}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-R\-X\-O\-U\-T\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-O\-U\-T received \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ad2d31f9be235d1f0b61a92914caec150}{udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-O\-U\-T\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-O\-U\-T received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_acbef1c0e893909b48f08f369f5c2101e}{udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-O\-U\-T\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-O\-U\-T received interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_af91e68106149ba73e0e7a597d2f1f0e7}{\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-O\-U\-T\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-O\-U\-T received interrupt is enabled \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_aeda1e279c304f18c0e96827e41da9d86}{\-Is\-\_\-udd\-\_\-in\-\_\-send}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-T\-X\-I\-N\-I\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-I\-N sending \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a11eb4dd0bf6c6694f1dccb3677d4b243}{udd\-\_\-ack\-\_\-in\-\_\-send}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-T\-X\-I\-N\-I\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em acks \-I\-N sending \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_afb1d0b8c2a38cbbece773c60206982a3}{udd\-\_\-raise\-\_\-in\-\_\-send}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-T\-X\-I\-N\-I\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em raises \-I\-N sending \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ae93fcd4e4efec3740ac5e4f97bda5603}{udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-T\-X\-I\-N\-E\-S\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em enables \-I\-N sending interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_a68bc029dbdcb3e938af79d00cad2ada6}{udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt}(ep)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-T\-X\-I\-N\-E\-C\-\_\-\-M\-A\-S\-K)
\begin{DoxyCompactList}\small\item\em disables \-I\-N sending interrupt \end{DoxyCompactList}\item 
\#define \hyperlink{usbc__device_8h_ae4f86fc4a54e34216fd1defe06aca408}{\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled}(ep)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-T\-X\-I\-N\-E\-\_\-\-M\-A\-S\-K))
\begin{DoxyCompactList}\small\item\em tests if \-I\-N sending interrupt is enabled \end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\paragraph*{\-U\-S\-B \-Device endpoints descriptor table management}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{usbc__device_8h_a18bc2b2f31d1aa60873c324c03a2dd2a}{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr}(ep, buf)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.endpoint\-\_\-pipe\-\_\-address = buf
\item 
\#define \hyperlink{usbc__device_8h_a1b918dae2ab647e3ca3139e3fa1bd835}{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size}(ep)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size = 0
\item 
\#define \hyperlink{usbc__device_8h_a0c540ab90d24659e8fb8646b6341c1d4}{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size}(ep)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size
\item 
\#define \hyperlink{usbc__device_8h_a3c3cec924aa661853b77c7bfa217f5f8}{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size}(ep, size)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size = size
\item 
\#define \hyperlink{usbc__device_8h_a3d1c7b214972a5b48448d63174913a0c}{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn}(ep)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count = 0
\item 
\#define \hyperlink{usbc__device_8h_a36dbb0f364c02ce1f3e8606063278824}{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn}(ep)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count
\item 
\#define \hyperlink{usbc__device_8h_a33dbd2726ba58e81114c5a025548e479}{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn}(ep, size)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count = size
\item 
\#define \hyperlink{usbc__device_8h_adf40824e97da4c3c7cc651427bd2370c}{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp}(ep, val)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-auto\-\_\-zlp = val
\item 
\#define \hyperlink{usbc__device_8h_add60165f4e021c5e08c9b647e65496c8}{\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg}(addr)~(\-Wr\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udesc, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-E\-S\-C\-\_\-\-M\-A\-S\-K, addr))
\end{DoxyCompactItemize}
\end{Indent}


\subsection{\-Detailed \-Description}
\-U\-S\-B\-C \-Device \-Driver header file. \-Copyright (\-C) 2009 \-Atmel \-Corporation. \-All rights reserved. 

\subsection{\-Define \-Documentation}
\hypertarget{usbc__device_8h_a745c69fca49259a55f097b89be266d9d}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-address\-\_\-enabled@{\-Is\-\_\-udd\-\_\-address\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-address\-\_\-enabled@{\-Is\-\_\-udd\-\_\-address\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-address\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-address\-\_\-enabled(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a745c69fca49259a55f097b89be266d9d}
\hypertarget{usbc__device_8h_a6008ad2528d55b1830466e59e37ebc3a}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-bank\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a6008ad2528d55b1830466e59e37ebc3a}


tests if all banks full (\-O\-U\-T) or free (\-I\-N) interrupt enabled 

\hypertarget{usbc__device_8h_ad6e25ea1e124ebe5ea9a6a9eb680b542}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-crc\-\_\-error@{\-Is\-\_\-udd\-\_\-crc\-\_\-error}}
\index{\-Is\-\_\-udd\-\_\-crc\-\_\-error@{\-Is\-\_\-udd\-\_\-crc\-\_\-error}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-crc\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-crc\-\_\-error(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_ad6e25ea1e124ebe5ea9a6a9eb680b542}


tests if \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected 

\hypertarget{usbc__device_8h_a0a42c1b5a4d7f8231ea015f5ce9e652c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-crc\-\_\-error\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a0a42c1b5a4d7f8231ea015f5ce9e652c}


tests if \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt is enabled 

\hypertarget{usbc__device_8h_aee6c06d0d3f8abf8cb14b4948782e6dd}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset@{\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset}}
\index{\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset@{\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-data\-\_\-toggle\-\_\-reset(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-S\-T\-D\-T\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aee6c06d0d3f8abf8cb14b4948782e6dd}


tests if the data toggle sequence is being reset 

\hypertarget{usbc__device_8h_afe6904680ed0cc545a96efa2ca0d1a43}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-endpoint\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_afe6904680ed0cc545a96efa2ca0d1a43}


tests if the selected endpoint is enabled 

\hypertarget{usbc__device_8h_ae9f80db7ea2439ef1fd11eaf0edceb91}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-endpoint\-\_\-in@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-in}}
\index{\-Is\-\_\-udd\-\_\-endpoint\-\_\-in@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-in}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-endpoint\-\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-endpoint\-\_\-in(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_ae9f80db7ea2439ef1fd11eaf0edceb91}
\hypertarget{usbc__device_8h_aa12b636c365b3590aaab1685f5051e9d}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt}}
\index{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udint, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-\_\-\-E\-P0\-I\-N\-T\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_aa12b636c365b3590aaab1685f5051e9d}


tests if an interrupt is triggered by the selected endpoint 

\hypertarget{usbc__device_8h_a9b246cff0fb38d50d154b1e56dbd95fc}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-endpoint\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinte, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-\_\-\-E\-P0\-I\-N\-T\-E\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_a9b246cff0fb38d50d154b1e56dbd95fc}


tests if the selected endpoint interrupt is enabled 

\hypertarget{usbc__device_8h_aa00f503d09cc11156d7bcd275316fcc2}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested}}
\index{\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested@{\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-endpoint\-\_\-stall\-\_\-requested(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aa00f503d09cc11156d7bcd275316fcc2}


tests if \-S\-T\-A\-L\-L handshake request is running 

\hypertarget{usbc__device_8h_a9b7eb71e23cbc004ff5e14d1b89ed5b5}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-fifocon@{\-Is\-\_\-udd\-\_\-fifocon}}
\index{\-Is\-\_\-udd\-\_\-fifocon@{\-Is\-\_\-udd\-\_\-fifocon}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-fifocon}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-fifocon(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-F\-I\-F\-O\-C\-O\-N\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a9b7eb71e23cbc004ff5e14d1b89ed5b5}


tests if \-F\-I\-F\-O\-C\-O\-N bit set 

\hypertarget{usbc__device_8h_aeda1e279c304f18c0e96827e41da9d86}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-in\-\_\-send@{\-Is\-\_\-udd\-\_\-in\-\_\-send}}
\index{\-Is\-\_\-udd\-\_\-in\-\_\-send@{\-Is\-\_\-udd\-\_\-in\-\_\-send}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-in\-\_\-send}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-in\-\_\-send(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-T\-X\-I\-N\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aeda1e279c304f18c0e96827e41da9d86}


tests if \-I\-N sending 

\hypertarget{usbc__device_8h_ae4f86fc4a54e34216fd1defe06aca408}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-in\-\_\-send\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-T\-X\-I\-N\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_ae4f86fc4a54e34216fd1defe06aca408}


tests if \-I\-N sending interrupt is enabled 

\hypertarget{usbc__device_8h_a4de9e6f0520cb387d2db1bd71c91762b}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed@{\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed}}
\index{\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed@{\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-last\-\_\-in\-\_\-bank\-\_\-killed(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-K\-I\-L\-L\-B\-K\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a4de9e6f0520cb387d2db1bd71c91762b}


tests if last bank killed 

\hypertarget{usbc__device_8h_a058bc49fc189ef865fe226cfcea4020b}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-nak\-\_\-in@{\-Is\-\_\-udd\-\_\-nak\-\_\-in}}
\index{\-Is\-\_\-udd\-\_\-nak\-\_\-in@{\-Is\-\_\-udd\-\_\-nak\-\_\-in}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-nak\-\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-nak\-\_\-in(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-A\-K\-I\-N\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a058bc49fc189ef865fe226cfcea4020b}


tests if \-N\-A\-K \-I\-N received 

\hypertarget{usbc__device_8h_a21d072c549f508c0bfa11877325ec6ca}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-nak\-\_\-in\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-A\-K\-I\-N\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a21d072c549f508c0bfa11877325ec6ca}


tests if \-N\-A\-K \-I\-N interrupt is enabled 

\hypertarget{usbc__device_8h_aa662342744f36999b1e7f7b427e421e6}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-nak\-\_\-out@{\-Is\-\_\-udd\-\_\-nak\-\_\-out}}
\index{\-Is\-\_\-udd\-\_\-nak\-\_\-out@{\-Is\-\_\-udd\-\_\-nak\-\_\-out}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-nak\-\_\-out}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-nak\-\_\-out(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-A\-K\-O\-U\-T\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aa662342744f36999b1e7f7b427e421e6}


tests if \-N\-A\-K \-O\-U\-T received 

\hypertarget{usbc__device_8h_aa556fab3c46354bde3d2cdd02da700d1}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-nak\-\_\-out\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-N\-A\-K\-O\-U\-T\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aa556fab3c46354bde3d2cdd02da700d1}


tests if \-N\-A\-K \-O\-U\-T interrupt is enabled 

\hypertarget{usbc__device_8h_a096c5fa1b85a21a8509f060f8dd6760c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-out\-\_\-received@{\-Is\-\_\-udd\-\_\-out\-\_\-received}}
\index{\-Is\-\_\-udd\-\_\-out\-\_\-received@{\-Is\-\_\-udd\-\_\-out\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-out\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-out\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-X\-O\-U\-T\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a096c5fa1b85a21a8509f060f8dd6760c}


tests if \-O\-U\-T received 

\hypertarget{usbc__device_8h_af91e68106149ba73e0e7a597d2f1f0e7}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-out\-\_\-received\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-O\-U\-T\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_af91e68106149ba73e0e7a597d2f1f0e7}


tests if \-O\-U\-T received interrupt is enabled 

\hypertarget{usbc__device_8h_a19a8109ed558b53a6c163ad4a1625ba1}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-overflow@{\-Is\-\_\-udd\-\_\-overflow}}
\index{\-Is\-\_\-udd\-\_\-overflow@{\-Is\-\_\-udd\-\_\-overflow}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-overflow}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-overflow(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-O\-V\-E\-R\-F\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a19a8109ed558b53a6c163ad4a1625ba1}


tests if an overflow occurs 

\hypertarget{usbc__device_8h_a0eea027a8784874c6d9176c228d0bcfd}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-overflow\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-O\-V\-E\-R\-F\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a0eea027a8784874c6d9176c228d0bcfd}


tests if overflow interrupt is enabled 

\hypertarget{usbc__device_8h_a7a9485a3763e6f605fbe0d699eb769e0}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error@{\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error}}
\index{\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error@{\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-ram\-\_\-access\-\_\-error(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-A\-M\-A\-C\-C\-E\-R\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a7a9485a3763e6f605fbe0d699eb769e0}


tests if a \-R\-A\-M access error occur 

\hypertarget{usbc__device_8h_a73bc67a85520896969c812e3002b565e}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint@{\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint}}
\index{\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint@{\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-resetting\-\_\-endpoint(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-R\-S\-T0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_a73bc67a85520896969c812e3002b565e}


tests if the selected endpoint is being reset 

\hypertarget{usbc__device_8h_a35421aaff45c60a7174d7082db2941f4}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-setup\-\_\-received@{\-Is\-\_\-udd\-\_\-setup\-\_\-received}}
\index{\-Is\-\_\-udd\-\_\-setup\-\_\-received@{\-Is\-\_\-udd\-\_\-setup\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-setup\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-setup\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-R\-X\-S\-T\-P\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a35421aaff45c60a7174d7082db2941f4}


tests if \-S\-E\-T\-U\-P received 

\hypertarget{usbc__device_8h_a4b4e77c5697efedbaa6ccef4f86dafcd}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-setup\-\_\-received\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-S\-T\-P\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a4b4e77c5697efedbaa6ccef4f86dafcd}


tests if \-S\-E\-T\-U\-P received interrupt is enabled 

\hypertarget{usbc__device_8h_a329b1cde520fa81858ee360533d760c0}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-short\-\_\-packet@{\-Is\-\_\-udd\-\_\-short\-\_\-packet}}
\index{\-Is\-\_\-udd\-\_\-short\-\_\-packet@{\-Is\-\_\-udd\-\_\-short\-\_\-packet}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-short\-\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-short\-\_\-packet(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a329b1cde520fa81858ee360533d760c0}


tests if \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received 

\hypertarget{usbc__device_8h_a4fb8e430cbdb750273e87a48b7e544c5}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-short\-\_\-packet\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a4fb8e430cbdb750273e87a48b7e544c5}


tests if \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt is enabled 

\hypertarget{usbc__device_8h_aa8f1423774570cc453649c43adffcde9}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-stall@{\-Is\-\_\-udd\-\_\-stall}}
\index{\-Is\-\_\-udd\-\_\-stall@{\-Is\-\_\-udd\-\_\-stall}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-stall}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-stall(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_aa8f1423774570cc453649c43adffcde9}


tests if \-S\-T\-A\-L\-L sent 

\hypertarget{usbc__device_8h_a328c29b9b3f54284bd7e2da8648e929c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-stall\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a328c29b9b3f54284bd7e2da8648e929c}


tests if \-S\-T\-A\-L\-L sent interrupt is enabled 

\hypertarget{usbc__device_8h_a69cf9244b156e14a178ba1413f3efbc8}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-underflow@{\-Is\-\_\-udd\-\_\-underflow}}
\index{\-Is\-\_\-udd\-\_\-underflow@{\-Is\-\_\-udd\-\_\-underflow}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-underflow}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-underflow(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-U\-N\-D\-E\-R\-F\-I\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a69cf9244b156e14a178ba1413f3efbc8}


tests if an underflow occurs 

\hypertarget{usbc__device_8h_a162bf1796a65a0165303957fd2430970}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled}}
\index{\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled@{\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Is\-\_\-udd\-\_\-underflow\-\_\-interrupt\-\_\-enabled(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Tst\-\_\-bits(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-\_\-\-R\-X\-S\-T\-P\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a162bf1796a65a0165303957fd2430970}


tests if underflow interrupt is enabled 

\hypertarget{usbc__device_8h_a73241164f2b850d0a7e5a76f013c1922}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-crc\-\_\-error@{udd\-\_\-ack\-\_\-crc\-\_\-error}}
\index{udd\-\_\-ack\-\_\-crc\-\_\-error@{udd\-\_\-ack\-\_\-crc\-\_\-error}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-crc\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-crc\-\_\-error(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a73241164f2b850d0a7e5a76f013c1922}


acks \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected 

\hypertarget{usbc__device_8h_ac70a8020e42c03943b2e5cb247be6a27}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-fifocon@{udd\-\_\-ack\-\_\-fifocon}}
\index{udd\-\_\-ack\-\_\-fifocon@{udd\-\_\-ack\-\_\-fifocon}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-fifocon}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-fifocon(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-F\-I\-F\-O\-C\-O\-N\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ac70a8020e42c03943b2e5cb247be6a27}


tests if endpoint read allowed 

tests if endpoint write allowed clears \-F\-I\-F\-O\-C\-O\-N bit \hypertarget{usbc__device_8h_a11eb4dd0bf6c6694f1dccb3677d4b243}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-in\-\_\-send@{udd\-\_\-ack\-\_\-in\-\_\-send}}
\index{udd\-\_\-ack\-\_\-in\-\_\-send@{udd\-\_\-ack\-\_\-in\-\_\-send}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-in\-\_\-send}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-in\-\_\-send(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-T\-X\-I\-N\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a11eb4dd0bf6c6694f1dccb3677d4b243}


acks \-I\-N sending 

\hypertarget{usbc__device_8h_a9c7ff845a31408640d21ab1abe2a3ac3}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-nak\-\_\-in@{udd\-\_\-ack\-\_\-nak\-\_\-in}}
\index{udd\-\_\-ack\-\_\-nak\-\_\-in@{udd\-\_\-ack\-\_\-nak\-\_\-in}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-nak\-\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-nak\-\_\-in(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-N\-A\-K\-I\-N\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a9c7ff845a31408640d21ab1abe2a3ac3}


acks \-N\-A\-K \-I\-N received 

\hypertarget{usbc__device_8h_a9a6aad5b3ec3f719a107a804c1c6157f}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-nak\-\_\-out@{udd\-\_\-ack\-\_\-nak\-\_\-out}}
\index{udd\-\_\-ack\-\_\-nak\-\_\-out@{udd\-\_\-ack\-\_\-nak\-\_\-out}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-nak\-\_\-out}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-nak\-\_\-out(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-N\-A\-K\-O\-U\-T\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a9a6aad5b3ec3f719a107a804c1c6157f}


acks \-N\-A\-K \-O\-U\-T received 

\hypertarget{usbc__device_8h_a155aeea7bacc9d819976155da32ea20c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-out\-\_\-received@{udd\-\_\-ack\-\_\-out\-\_\-received}}
\index{udd\-\_\-ack\-\_\-out\-\_\-received@{udd\-\_\-ack\-\_\-out\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-out\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-out\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~((\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-R\-X\-O\-U\-T\-I\-C\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a155aeea7bacc9d819976155da32ea20c}


acks \-O\-U\-T received 

\hypertarget{usbc__device_8h_a989c61a1ef03a3821e17a66a6ca47801}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-overflow\-\_\-interrupt@{udd\-\_\-ack\-\_\-overflow\-\_\-interrupt}}
\index{udd\-\_\-ack\-\_\-overflow\-\_\-interrupt@{udd\-\_\-ack\-\_\-overflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-overflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-overflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-O\-V\-E\-R\-F\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a989c61a1ef03a3821e17a66a6ca47801}


acks endpoint isochronous overflow interrupt 

\hypertarget{usbc__device_8h_abf07f0798c3538c4306af26f1eb9ce2b}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-setup\-\_\-received@{udd\-\_\-ack\-\_\-setup\-\_\-received}}
\index{udd\-\_\-ack\-\_\-setup\-\_\-received@{udd\-\_\-ack\-\_\-setup\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-setup\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-setup\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~((\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-I\-C\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_abf07f0798c3538c4306af26f1eb9ce2b}


acks \-S\-E\-T\-U\-P received 

\hypertarget{usbc__device_8h_a583fd943c8a96f8561887cd996d6c05f}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-short\-\_\-packet@{udd\-\_\-ack\-\_\-short\-\_\-packet}}
\index{udd\-\_\-ack\-\_\-short\-\_\-packet@{udd\-\_\-ack\-\_\-short\-\_\-packet}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-short\-\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-short\-\_\-packet(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a583fd943c8a96f8561887cd996d6c05f}


acks \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received 

\hypertarget{usbc__device_8h_a80549eb8ff7c759ce3a0616ca2ff4e9a}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-stall@{udd\-\_\-ack\-\_\-stall}}
\index{udd\-\_\-ack\-\_\-stall@{udd\-\_\-ack\-\_\-stall}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-stall}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-stall(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a80549eb8ff7c759ce3a0616ca2ff4e9a}


acks \-S\-T\-A\-L\-L sent 

\hypertarget{usbc__device_8h_adbe43b87bdd82e175d8dd4a70022f77d}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-ack\-\_\-underflow\-\_\-interrupt@{udd\-\_\-ack\-\_\-underflow\-\_\-interrupt}}
\index{udd\-\_\-ack\-\_\-underflow\-\_\-interrupt@{udd\-\_\-ack\-\_\-underflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-ack\-\_\-underflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-ack\-\_\-underflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-C\-L\-R\-\_\-\-U\-N\-D\-E\-R\-F\-I\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_adbe43b87bdd82e175d8dd4a70022f77d}


acks endpoint isochronous underflow interrupt 

\hypertarget{usbc__device_8h_a5c6819ba3af1c84a7d7d33f059678e24}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-address@{udd\-\_\-configure\-\_\-address}}
\index{udd\-\_\-configure\-\_\-address@{udd\-\_\-configure\-\_\-address}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-address(
\begin{DoxyParamCaption}
\item[{}]{addr}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-U\-A\-D\-D\-\_\-\-M\-A\-S\-K, addr))}}
\label{usbc__device_8h_a5c6819ba3af1c84a7d7d33f059678e24}


configures the \-U\-S\-B device address 

\hypertarget{usbc__device_8h_ab0dd6d762bb7c07b3c085bfa77d7094a}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-endpoint@{udd\-\_\-configure\-\_\-endpoint}}
\index{udd\-\_\-configure\-\_\-endpoint@{udd\-\_\-configure\-\_\-endpoint}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-endpoint}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-endpoint(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{type, }
\item[{}]{dir, }
\item[{}]{size, }
\item[{}]{bank}
\end{DoxyParamCaption}
)}}
\label{usbc__device_8h_ab0dd6d762bb7c07b3c085bfa77d7094a}
{\bfseries \-Value\-:}
\begin{DoxyCode}
(\
   Wr_bits(USBC_ARRAY(uecfg0,ep), AVR32_USBC_UECFG0_EPTYPE_MASK |\
                                  AVR32_USBC_UECFG0_EPDIR_MASK  |\
                                  AVR32_USBC_UECFG0_EPSIZE_MASK |\
                                  AVR32_USBC_UECFG0_EPBK_MASK,   \
            (((uint32_t)(type) << AVR32_USBC_UECFG0_EPTYPE_OFFSET) & 
      AVR32_USBC_UECFG0_EPTYPE_MASK) |\
            (((uint32_t)(dir ) << AVR32_USBC_UECFG0_EPDIR_OFFSET ) & 
      AVR32_USBC_UECFG0_EPDIR_MASK ) |\
            ( (uint32_t)udd_format_endpoint_size(size) << 
      AVR32_USBC_UECFG0_EPSIZE_OFFSET         ) |\
            (((uint32_t)(bank) << AVR32_USBC_UECFG0_EPBK_OFFSET  ) & 
      AVR32_USBC_UECFG0_EPBK_MASK  ))\
)
\end{DoxyCode}


configures selected endpoint in one step 

\hypertarget{usbc__device_8h_a5256fbd33ecb07fd5c1651f26d1b0313}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-endpoint\-\_\-bank@{udd\-\_\-configure\-\_\-endpoint\-\_\-bank}}
\index{udd\-\_\-configure\-\_\-endpoint\-\_\-bank@{udd\-\_\-configure\-\_\-endpoint\-\_\-bank}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-endpoint\-\_\-bank}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-endpoint\-\_\-bank(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{bank}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-B\-K\-\_\-\-M\-A\-S\-K, bank))}}
\label{usbc__device_8h_a5256fbd33ecb07fd5c1651f26d1b0313}


configures the selected endpoint number of banks 

\hypertarget{usbc__device_8h_adf9bd49f7579a94166a10c4c6645f5de}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-endpoint\-\_\-direction@{udd\-\_\-configure\-\_\-endpoint\-\_\-direction}}
\index{udd\-\_\-configure\-\_\-endpoint\-\_\-direction@{udd\-\_\-configure\-\_\-endpoint\-\_\-direction}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-endpoint\-\_\-direction}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-endpoint\-\_\-direction(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{dir}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K, dir))}}
\label{usbc__device_8h_adf9bd49f7579a94166a10c4c6645f5de}


enables the bank autoswitch for the selected endpoint 

disables the bank autoswitch for the selected endpoint configures the selected endpoint direction \hypertarget{usbc__device_8h_aed35d93ac28f5309919a8c6988baee47}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-endpoint\-\_\-size@{udd\-\_\-configure\-\_\-endpoint\-\_\-size}}
\index{udd\-\_\-configure\-\_\-endpoint\-\_\-size@{udd\-\_\-configure\-\_\-endpoint\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-endpoint\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-endpoint\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{size}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-S\-I\-Z\-E\-\_\-\-M\-A\-S\-K, udd\-\_\-format\-\_\-endpoint\-\_\-size(size)))}}
\label{usbc__device_8h_aed35d93ac28f5309919a8c6988baee47}


configures the selected endpoint size 

\hypertarget{usbc__device_8h_a6cb296a52400f97a43b55679e95f0d1c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-configure\-\_\-endpoint\-\_\-type@{udd\-\_\-configure\-\_\-endpoint\-\_\-type}}
\index{udd\-\_\-configure\-\_\-endpoint\-\_\-type@{udd\-\_\-configure\-\_\-endpoint\-\_\-type}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-configure\-\_\-endpoint\-\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-configure\-\_\-endpoint\-\_\-type(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{type}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-M\-A\-S\-K, type))}}
\label{usbc__device_8h_a6cb296a52400f97a43b55679e95f0d1c}


configures the selected endpoint type 

\hypertarget{usbc__device_8h_ab535c15be47ca7b41b9af4fcc01cdc71}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-control\-\_\-direction@{udd\-\_\-control\-\_\-direction}}
\index{udd\-\_\-control\-\_\-direction@{udd\-\_\-control\-\_\-direction}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-control\-\_\-direction}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-control\-\_\-direction(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0(\-E\-P\-\_\-\-C\-O\-N\-T\-R\-O\-L), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-C\-T\-R\-L\-D\-I\-R\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_ab535c15be47ca7b41b9af4fcc01cdc71}


returns the control direction 

\hypertarget{usbc__device_8h_add031c6e7450e25a69b04416514d7696}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-current\-\_\-bank@{udd\-\_\-current\-\_\-bank}}
\index{udd\-\_\-current\-\_\-bank@{udd\-\_\-current\-\_\-bank}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-current\-\_\-bank}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-current\-\_\-bank(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-C\-U\-R\-R\-B\-K\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_add031c6e7450e25a69b04416514d7696}


returns the number of the current bank 

\hypertarget{usbc__device_8h_abed983b720337e2ed5884d78e4519948}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-data\-\_\-toggle@{udd\-\_\-data\-\_\-toggle}}
\index{udd\-\_\-data\-\_\-toggle@{udd\-\_\-data\-\_\-toggle}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-data\-\_\-toggle}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-data\-\_\-toggle(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-D\-T\-S\-E\-Q\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_abed983b720337e2ed5884d78e4519948}


returns data toggle 

\hypertarget{usbc__device_8h_a21a5e9eb44ea5fd15eb4e9c7603e77c6}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-address@{udd\-\_\-disable\-\_\-address}}
\index{udd\-\_\-disable\-\_\-address@{udd\-\_\-disable\-\_\-address}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-address(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a21a5e9eb44ea5fd15eb4e9c7603e77c6}


disables \-U\-S\-B device address 

\hypertarget{usbc__device_8h_af9b9ee869302039a5a8e97186579eaaf}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-bank\-\_\-interrupt@{udd\-\_\-disable\-\_\-bank\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-bank\-\_\-interrupt@{udd\-\_\-disable\-\_\-bank\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-bank\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-bank\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_af9b9ee869302039a5a8e97186579eaaf}


disables all banks full (\-O\-U\-T) or free (\-I\-N) interrupt 

\hypertarget{usbc__device_8h_ae00d2879deb19a5b70b0c1bf0cbabc2e}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-busy\-\_\-bank0@{udd\-\_\-disable\-\_\-busy\-\_\-bank0}}
\index{udd\-\_\-disable\-\_\-busy\-\_\-bank0@{udd\-\_\-disable\-\_\-busy\-\_\-bank0}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-busy\-\_\-bank0}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-busy\-\_\-bank0(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-B\-U\-S\-Y0\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ae00d2879deb19a5b70b0c1bf0cbabc2e}


\-Disable busy on bank0. 

\hypertarget{usbc__device_8h_a0e41b2c169fc026153b7be55266b5966}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-busy\-\_\-bank1@{udd\-\_\-disable\-\_\-busy\-\_\-bank1}}
\index{udd\-\_\-disable\-\_\-busy\-\_\-bank1@{udd\-\_\-disable\-\_\-busy\-\_\-bank1}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-busy\-\_\-bank1}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-busy\-\_\-bank1(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-B\-U\-S\-Y1\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a0e41b2c169fc026153b7be55266b5966}


\-Disable busy on bank1. 

\hypertarget{usbc__device_8h_a63e2a523826ed3ac39ffec2bf5e430d7}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt@{udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt@{udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-crc\-\_\-error\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a63e2a523826ed3ac39ffec2bf5e430d7}


disables \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt 

\hypertarget{usbc__device_8h_a78448032b7215b5c3168c2219609f439}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-endpoint@{udd\-\_\-disable\-\_\-endpoint}}
\index{udd\-\_\-disable\-\_\-endpoint@{udd\-\_\-disable\-\_\-endpoint}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-endpoint}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-endpoint(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Clr\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_a78448032b7215b5c3168c2219609f439}


disables the selected endpoint 

\hypertarget{usbc__device_8h_a8b172bafee7421956c3d195b8c30da92}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt@{udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt@{udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-endpoint\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteclr = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-C\-L\-R\-\_\-\-E\-P0\-I\-N\-T\-E\-C\-\_\-\-M\-A\-S\-K $<$$<$ (ep))}}
\label{usbc__device_8h_a8b172bafee7421956c3d195b8c30da92}


disables the selected endpoint interrupt 

\hypertarget{usbc__device_8h_a68bc029dbdcb3e938af79d00cad2ada6}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt@{udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt@{udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-in\-\_\-send\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-T\-X\-I\-N\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a68bc029dbdcb3e938af79d00cad2ada6}


disables \-I\-N sending interrupt 

\hypertarget{usbc__device_8h_a1f2beebb3753a3b3e86aaaf93cb8b958}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt@{udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt@{udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-nak\-\_\-in\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-A\-K\-I\-N\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a1f2beebb3753a3b3e86aaaf93cb8b958}


disables \-N\-A\-K \-I\-N interrupt 

\hypertarget{usbc__device_8h_afebfb5c623a09ce5a760ac43ba54a583}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt@{udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt@{udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-nak\-\_\-out\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-A\-K\-O\-U\-T\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_afebfb5c623a09ce5a760ac43ba54a583}


disables \-N\-A\-K \-O\-U\-T interrupt 

\hypertarget{usbc__device_8h_aedfa79f446bab64bee7ba639045cae3f}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-nyet@{udd\-\_\-disable\-\_\-nyet}}
\index{udd\-\_\-disable\-\_\-nyet@{udd\-\_\-disable\-\_\-nyet}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-nyet}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-nyet(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-Y\-E\-T\-D\-I\-S\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_aedfa79f446bab64bee7ba639045cae3f}


\-Enable \-N\-Y\-E\-T. 

\hypertarget{usbc__device_8h_acbef1c0e893909b48f08f369f5c2101e}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt@{udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt@{udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-out\-\_\-received\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-O\-U\-T\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_acbef1c0e893909b48f08f369f5c2101e}


disables \-O\-U\-T received interrupt 

\hypertarget{usbc__device_8h_aaae544aa935567496d6195ed4cd71ccc}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-overflow\-\_\-interrupt@{udd\-\_\-disable\-\_\-overflow\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-overflow\-\_\-interrupt@{udd\-\_\-disable\-\_\-overflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-overflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-overflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-O\-V\-E\-R\-F\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_aaae544aa935567496d6195ed4cd71ccc}


disables overflow interrupt 

\hypertarget{usbc__device_8h_a668c58ec343f368da78ec9f15cae7373}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt@{udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt@{udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-setup\-\_\-received\-\_\-interrupt(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr(\-E\-P\-\_\-\-C\-O\-N\-T\-R\-O\-L) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a668c58ec343f368da78ec9f15cae7373}


disables \-S\-E\-T\-U\-P received interrupt 

\hypertarget{usbc__device_8h_a5d5276a39a695e7fc7c72bd6dc68ba4d}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt@{udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt@{udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-short\-\_\-packet\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a5d5276a39a695e7fc7c72bd6dc68ba4d}


disables \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt 

\hypertarget{usbc__device_8h_ab3ba0a5c25072f412af76337a9f78b49}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-stall\-\_\-handshake@{udd\-\_\-disable\-\_\-stall\-\_\-handshake}}
\index{udd\-\_\-disable\-\_\-stall\-\_\-handshake@{udd\-\_\-disable\-\_\-stall\-\_\-handshake}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-stall\-\_\-handshake}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-stall\-\_\-handshake(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ab3ba0a5c25072f412af76337a9f78b49}


disables the \-S\-T\-A\-L\-L handshake 

\hypertarget{usbc__device_8h_a7fec1c00b97a76215582b9245675a16f}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-stall\-\_\-interrupt@{udd\-\_\-disable\-\_\-stall\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-stall\-\_\-interrupt@{udd\-\_\-disable\-\_\-stall\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-stall\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-stall\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a7fec1c00b97a76215582b9245675a16f}


disables \-S\-T\-A\-L\-L sent interrupt 

\hypertarget{usbc__device_8h_a9414bf12df2ab83c146e18db3c185771}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-disable\-\_\-underflow\-\_\-interrupt@{udd\-\_\-disable\-\_\-underflow\-\_\-interrupt}}
\index{udd\-\_\-disable\-\_\-underflow\-\_\-interrupt@{udd\-\_\-disable\-\_\-underflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-disable\-\_\-underflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-disable\-\_\-underflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-R\-X\-S\-T\-P\-E\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a9414bf12df2ab83c146e18db3c185771}


disables underflow interrupt 

\hypertarget{usbc__device_8h_a45ad65d26b8b1c07d438d6a953356adc}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-address@{udd\-\_\-enable\-\_\-address}}
\index{udd\-\_\-enable\-\_\-address@{udd\-\_\-enable\-\_\-address}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-address(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-A\-D\-D\-E\-N\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a45ad65d26b8b1c07d438d6a953356adc}


enables \-U\-S\-B device address 

\hypertarget{usbc__device_8h_affdee8df03c3087459da437f64409de1}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-bank\-\_\-interrupt@{udd\-\_\-enable\-\_\-bank\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-bank\-\_\-interrupt@{udd\-\_\-enable\-\_\-bank\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-bank\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-bank\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_affdee8df03c3087459da437f64409de1}


enables all banks full (\-O\-U\-T) or free (\-I\-N) interrupt 

\hypertarget{usbc__device_8h_a7808ee92bc219ec6bc161749fd8d8848}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-busy\-\_\-bank0@{udd\-\_\-enable\-\_\-busy\-\_\-bank0}}
\index{udd\-\_\-enable\-\_\-busy\-\_\-bank0@{udd\-\_\-enable\-\_\-busy\-\_\-bank0}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-busy\-\_\-bank0}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-busy\-\_\-bank0(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-B\-U\-S\-Y0\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a7808ee92bc219ec6bc161749fd8d8848}


\-Enable busy on bank0. 

\hypertarget{usbc__device_8h_a9f195135bbeaa0aceb54dada54387a46}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-busy\-\_\-bank1@{udd\-\_\-enable\-\_\-busy\-\_\-bank1}}
\index{udd\-\_\-enable\-\_\-busy\-\_\-bank1@{udd\-\_\-enable\-\_\-busy\-\_\-bank1}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-busy\-\_\-bank1}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-busy\-\_\-bank1(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-B\-U\-S\-Y1\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a9f195135bbeaa0aceb54dada54387a46}


\-Enable busy on bank1. 

\hypertarget{usbc__device_8h_a4bcf4430699577add8b0470749897371}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt@{udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt@{udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-crc\-\_\-error\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a4bcf4430699577add8b0470749897371}


enables \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected interrupt 

\hypertarget{usbc__device_8h_ad03d0e3d03b41ad352bcfb1e20618cf3}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-endpoint@{udd\-\_\-enable\-\_\-endpoint}}
\index{udd\-\_\-enable\-\_\-endpoint@{udd\-\_\-enable\-\_\-endpoint}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-endpoint}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-endpoint(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Set\-\_\-bits(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-uerst, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-R\-S\-T\-\_\-\-E\-P\-E\-N0\-\_\-\-M\-A\-S\-K $<$$<$ (ep)))}}
\label{usbc__device_8h_ad03d0e3d03b41ad352bcfb1e20618cf3}


enables the selected endpoint 

\hypertarget{usbc__device_8h_afeee27d730e49f7182fb7e1b40649947}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt@{udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt@{udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-endpoint\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udinteset = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-I\-N\-T\-E\-S\-E\-T\-\_\-\-E\-P0\-I\-N\-T\-E\-S\-\_\-\-M\-A\-S\-K $<$$<$ (ep))}}
\label{usbc__device_8h_afeee27d730e49f7182fb7e1b40649947}


enables the selected endpoint interrupt 

\hypertarget{usbc__device_8h_ae93fcd4e4efec3740ac5e4f97bda5603}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt@{udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt@{udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-in\-\_\-send\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-T\-X\-I\-N\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ae93fcd4e4efec3740ac5e4f97bda5603}


enables \-I\-N sending interrupt 

\hypertarget{usbc__device_8h_adbc5e8ee2fe92c01b938b09d6cbee804}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt@{udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt@{udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-nak\-\_\-in\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-A\-K\-I\-N\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_adbc5e8ee2fe92c01b938b09d6cbee804}


enables \-N\-A\-K \-I\-N interrupt 

\hypertarget{usbc__device_8h_a5b4d46dfc6148b45b9505c33ed3133e9}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt@{udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt@{udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-nak\-\_\-out\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-N\-A\-K\-O\-U\-T\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a5b4d46dfc6148b45b9505c33ed3133e9}


enables \-N\-A\-K \-O\-U\-T interrupt 

\hypertarget{usbc__device_8h_a19f3613c3c1aa1603c4c9f3e932be408}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-nyet@{udd\-\_\-enable\-\_\-nyet}}
\index{udd\-\_\-enable\-\_\-nyet@{udd\-\_\-enable\-\_\-nyet}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-nyet}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-nyet(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0clr,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-C\-L\-R\-\_\-\-N\-Y\-E\-T\-D\-I\-S\-C\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a19f3613c3c1aa1603c4c9f3e932be408}


\-Disable \-N\-Y\-E\-T. 

\hypertarget{usbc__device_8h_ad2d31f9be235d1f0b61a92914caec150}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt@{udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt@{udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-out\-\_\-received\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-O\-U\-T\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ad2d31f9be235d1f0b61a92914caec150}


enables \-O\-U\-T received interrupt 

\hypertarget{usbc__device_8h_a7ef25a39e90ff903696c0c6b0cf4b573}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-overflow\-\_\-interrupt@{udd\-\_\-enable\-\_\-overflow\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-overflow\-\_\-interrupt@{udd\-\_\-enable\-\_\-overflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-overflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-overflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-O\-V\-E\-R\-F\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a7ef25a39e90ff903696c0c6b0cf4b573}


enables overflow interrupt 

\hypertarget{usbc__device_8h_ad50aa9e7b28504019f64a660d20d5160}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt@{udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt@{udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-setup\-\_\-received\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ad50aa9e7b28504019f64a660d20d5160}


enables \-S\-E\-T\-U\-P received interrupt 

\hypertarget{usbc__device_8h_a535f35b986fc195eb6a014cf9cfa8204}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt@{udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt@{udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-short\-\_\-packet\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a535f35b986fc195eb6a014cf9cfa8204}


enables \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received interrupt 

\hypertarget{usbc__device_8h_a53559e240871eefce5727db759814f67}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-stall\-\_\-handshake@{udd\-\_\-enable\-\_\-stall\-\_\-handshake}}
\index{udd\-\_\-enable\-\_\-stall\-\_\-handshake@{udd\-\_\-enable\-\_\-stall\-\_\-handshake}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-stall\-\_\-handshake}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-stall\-\_\-handshake(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-R\-Q\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a53559e240871eefce5727db759814f67}


enables the \-S\-T\-A\-L\-L handshake 

\hypertarget{usbc__device_8h_a5d4273d7708a52f01c6c25ce1159d753}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-stall\-\_\-interrupt@{udd\-\_\-enable\-\_\-stall\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-stall\-\_\-interrupt@{udd\-\_\-enable\-\_\-stall\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-stall\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-stall\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a5d4273d7708a52f01c6c25ce1159d753}


enables \-S\-T\-A\-L\-L sent interrupt 

\hypertarget{usbc__device_8h_a5e6cd558da44828750e27cc78dba86e3}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-enable\-\_\-underflow\-\_\-interrupt@{udd\-\_\-enable\-\_\-underflow\-\_\-interrupt}}
\index{udd\-\_\-enable\-\_\-underflow\-\_\-interrupt@{udd\-\_\-enable\-\_\-underflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-enable\-\_\-underflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-enable\-\_\-underflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-E\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a5e6cd558da44828750e27cc78dba86e3}


enables underflow interrupt 

\hypertarget{usbc__device_8h_a64b05771e325d90e9ff6497a84c35e62}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-force\-\_\-bank\-\_\-interrupt@{udd\-\_\-force\-\_\-bank\-\_\-interrupt}}
\index{udd\-\_\-force\-\_\-bank\-\_\-interrupt@{udd\-\_\-force\-\_\-bank\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-force\-\_\-bank\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-force\-\_\-bank\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a64b05771e325d90e9ff6497a84c35e62}


forces all banks full (\-O\-U\-T) or free (\-I\-N) interrupt 

\hypertarget{usbc__device_8h_a9fc78147cab52be8b840973ef29d0076}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-format\-\_\-endpoint\-\_\-size@{udd\-\_\-format\-\_\-endpoint\-\_\-size}}
\index{udd\-\_\-format\-\_\-endpoint\-\_\-size@{udd\-\_\-format\-\_\-endpoint\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-format\-\_\-endpoint\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-format\-\_\-endpoint\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{size}
\end{DoxyParamCaption}
)~(32 -\/ clz(((uint32\-\_\-t)min(max(size, 8), 1024) $<$$<$ 1) -\/ 1) -\/ 1 -\/ 3)}}
\label{usbc__device_8h_a9fc78147cab52be8b840973ef29d0076}
\-Bounds given integer size to allowed range and rounds it up to the nearest available greater size, then applies register format of \-U\-S\-B\-C controller for endpoint size bit-\/field. \hypertarget{usbc__device_8h_a7abf42f819560e7da3b51d0ab6b73c33}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-configured\-\_\-address@{udd\-\_\-get\-\_\-configured\-\_\-address}}
\index{udd\-\_\-get\-\_\-configured\-\_\-address@{udd\-\_\-get\-\_\-configured\-\_\-address}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-configured\-\_\-address}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-configured\-\_\-address(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udcon, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-C\-O\-N\-\_\-\-U\-A\-D\-D\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a7abf42f819560e7da3b51d0ab6b73c33}


gets the currently configured \-U\-S\-B device address 

\hypertarget{usbc__device_8h_abfae08b406c33eff07a328c0a1bf9f48}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-endpoint\-\_\-bank@{udd\-\_\-get\-\_\-endpoint\-\_\-bank}}
\index{udd\-\_\-get\-\_\-endpoint\-\_\-bank@{udd\-\_\-get\-\_\-endpoint\-\_\-bank}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-endpoint\-\_\-bank}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-endpoint\-\_\-bank(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-B\-K\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_abfae08b406c33eff07a328c0a1bf9f48}


gets the configured selected endpoint number of banks 

\hypertarget{usbc__device_8h_a1e9ebc6e500cfa654b2da58c235f1464}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-endpoint\-\_\-direction@{udd\-\_\-get\-\_\-endpoint\-\_\-direction}}
\index{udd\-\_\-get\-\_\-endpoint\-\_\-direction@{udd\-\_\-get\-\_\-endpoint\-\_\-direction}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-endpoint\-\_\-direction}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-endpoint\-\_\-direction(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-D\-I\-R\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a1e9ebc6e500cfa654b2da58c235f1464}


gets the configured selected endpoint direction 

\hypertarget{usbc__device_8h_a16fa9454335f40118cc84efaa229c002}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-endpoint\-\_\-size@{udd\-\_\-get\-\_\-endpoint\-\_\-size}}
\index{udd\-\_\-get\-\_\-endpoint\-\_\-size@{udd\-\_\-get\-\_\-endpoint\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-endpoint\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-endpoint\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(8 $<$$<$ \-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-S\-I\-Z\-E\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a16fa9454335f40118cc84efaa229c002}


gets the configured selected endpoint size 

\hypertarget{usbc__device_8h_a9038cc39fe44400c771b159f3ffe19e7}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-endpoint\-\_\-type@{udd\-\_\-get\-\_\-endpoint\-\_\-type}}
\index{udd\-\_\-get\-\_\-endpoint\-\_\-type@{udd\-\_\-get\-\_\-endpoint\-\_\-type}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-endpoint\-\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-endpoint\-\_\-type(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~((\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecfg0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-M\-A\-S\-K))$>$$>$\-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-F\-G0\-\_\-\-E\-P\-T\-Y\-P\-E\-\_\-\-O\-F\-F\-S\-E\-T)}}
\label{usbc__device_8h_a9038cc39fe44400c771b159f3ffe19e7}


gets the configured selected endpoint type 

\hypertarget{usbc__device_8h_a2626b75423f2c54799bbeaf2c1fc816f}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number@{udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number}}
\index{udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number@{udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-get\-\_\-interrupt\-\_\-endpoint\-\_\-number(
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{usbc__device_8h_a2626b75423f2c54799bbeaf2c1fc816f}
{\bfseries \-Value\-:}
\begin{DoxyCode}
(ctz(((AVR32_USBC.udint >> AVR32_USBC_UDINT_EP0INT_OFFSET) &\
                                                   (AVR32_USBC.udinte >> 
      AVR32_USBC_UDINTE_EP0INTE_OFFSET)) |\
                                                   (1 << MAX_PEP_NB)))
\end{DoxyCode}


returns the lowest endpoint number generating an endpoint interrupt or \-M\-A\-X\-\_\-\-P\-E\-P\-\_\-\-N\-B if none 

\hypertarget{usbc__device_8h_a21f6ff4bffcd208971419ac13427bc61}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank@{udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank}}
\index{udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank@{udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-kill\-\_\-last\-\_\-in\-\_\-bank(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-K\-I\-L\-L\-B\-K\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a21f6ff4bffcd208971419ac13427bc61}


kills last bank 

\hypertarget{usbc__device_8h_a5c6d18d773abb7af0c1aa987006d7f86}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-nb\-\_\-busy\-\_\-bank@{udd\-\_\-nb\-\_\-busy\-\_\-bank}}
\index{udd\-\_\-nb\-\_\-busy\-\_\-bank@{udd\-\_\-nb\-\_\-busy\-\_\-bank}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-nb\-\_\-busy\-\_\-bank}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-nb\-\_\-busy\-\_\-bank(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-Rd\-\_\-bitfield(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0,ep), \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-\_\-\-M\-A\-S\-K))}}
\label{usbc__device_8h_a5c6d18d773abb7af0c1aa987006d7f86}


returns the number of busy banks 

\hypertarget{usbc__device_8h_a09c5d13c3b160178e0a1f18f50cc435b}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-crc\-\_\-error@{udd\-\_\-raise\-\_\-crc\-\_\-error}}
\index{udd\-\_\-raise\-\_\-crc\-\_\-error@{udd\-\_\-raise\-\_\-crc\-\_\-error}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-crc\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-crc\-\_\-error(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a09c5d13c3b160178e0a1f18f50cc435b}


raises \-C\-R\-C \-E\-R\-R\-O\-R \-I\-S\-O \-O\-U\-T detected 

\hypertarget{usbc__device_8h_afb1d0b8c2a38cbbece773c60206982a3}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-in\-\_\-send@{udd\-\_\-raise\-\_\-in\-\_\-send}}
\index{udd\-\_\-raise\-\_\-in\-\_\-send@{udd\-\_\-raise\-\_\-in\-\_\-send}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-in\-\_\-send}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-in\-\_\-send(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-T\-X\-I\-N\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_afb1d0b8c2a38cbbece773c60206982a3}


raises \-I\-N sending 

\hypertarget{usbc__device_8h_add81f92998f841a45c0bbe3d4f13c6fa}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-nak\-\_\-in@{udd\-\_\-raise\-\_\-nak\-\_\-in}}
\index{udd\-\_\-raise\-\_\-nak\-\_\-in@{udd\-\_\-raise\-\_\-nak\-\_\-in}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-nak\-\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-nak\-\_\-in(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-A\-K\-I\-N\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_add81f92998f841a45c0bbe3d4f13c6fa}


raises \-N\-A\-K \-I\-N received 

\hypertarget{usbc__device_8h_a04078a2d8249cf03c22ffad483e3e7dc}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-nak\-\_\-out@{udd\-\_\-raise\-\_\-nak\-\_\-out}}
\index{udd\-\_\-raise\-\_\-nak\-\_\-out@{udd\-\_\-raise\-\_\-nak\-\_\-out}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-nak\-\_\-out}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-nak\-\_\-out(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-A\-K\-O\-U\-T\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a04078a2d8249cf03c22ffad483e3e7dc}


raises \-N\-A\-K \-O\-U\-T received 

\hypertarget{usbc__device_8h_a8aa1844030b75833ccab407a93f23c5b}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-out\-\_\-received@{udd\-\_\-raise\-\_\-out\-\_\-received}}
\index{udd\-\_\-raise\-\_\-out\-\_\-received@{udd\-\_\-raise\-\_\-out\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-out\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-out\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-R\-X\-O\-U\-T\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a8aa1844030b75833ccab407a93f23c5b}


raises \-O\-U\-T received 

\hypertarget{usbc__device_8h_a1f5a81edfbab51799c3a60c2a24e14c8}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-overflow\-\_\-interrupt@{udd\-\_\-raise\-\_\-overflow\-\_\-interrupt}}
\index{udd\-\_\-raise\-\_\-overflow\-\_\-interrupt@{udd\-\_\-raise\-\_\-overflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-overflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-overflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-O\-V\-E\-R\-F\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a1f5a81edfbab51799c3a60c2a24e14c8}


raises endpoint isochronous overflow interrupt 

\hypertarget{usbc__device_8h_a832e9941b31f7d7ba52cc0a2eb31e848}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-setup\-\_\-received@{udd\-\_\-raise\-\_\-setup\-\_\-received}}
\index{udd\-\_\-raise\-\_\-setup\-\_\-received@{udd\-\_\-raise\-\_\-setup\-\_\-received}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-setup\-\_\-received}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-setup\-\_\-received(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-R\-X\-S\-T\-P\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a832e9941b31f7d7ba52cc0a2eb31e848}


raises \-S\-E\-T\-U\-P received 

\hypertarget{usbc__device_8h_ac795af3e94f1202e6aab7b149632ab90}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-short\-\_\-packet@{udd\-\_\-raise\-\_\-short\-\_\-packet}}
\index{udd\-\_\-raise\-\_\-short\-\_\-packet@{udd\-\_\-raise\-\_\-short\-\_\-packet}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-short\-\_\-packet}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-short\-\_\-packet(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-H\-O\-R\-T\-P\-A\-C\-K\-E\-T\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ac795af3e94f1202e6aab7b149632ab90}


raises \-S\-H\-O\-R\-T \-P\-A\-C\-K\-E\-T received 

\hypertarget{usbc__device_8h_a18f2dcfdb7e62260eed0568dd4aae35e}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-stall@{udd\-\_\-raise\-\_\-stall}}
\index{udd\-\_\-raise\-\_\-stall@{udd\-\_\-raise\-\_\-stall}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-stall}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-stall(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-S\-T\-A\-L\-L\-E\-D\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_a18f2dcfdb7e62260eed0568dd4aae35e}


raises \-S\-T\-A\-L\-L sent 

\hypertarget{usbc__device_8h_ac62a73b450f839afd0fa9373a20b6572}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-raise\-\_\-underflow\-\_\-interrupt@{udd\-\_\-raise\-\_\-underflow\-\_\-interrupt}}
\index{udd\-\_\-raise\-\_\-underflow\-\_\-interrupt@{udd\-\_\-raise\-\_\-underflow\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-raise\-\_\-underflow\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-raise\-\_\-underflow\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-U\-N\-D\-E\-R\-F\-I\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_ac62a73b450f839afd0fa9373a20b6572}


raises endpoint isochronous underflow interrupt 

\hypertarget{usbc__device_8h_af8215756ce1ffa8c2ae43bd44cd1b5ca}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-reset\-\_\-data\-\_\-toggle@{udd\-\_\-reset\-\_\-data\-\_\-toggle}}
\index{udd\-\_\-reset\-\_\-data\-\_\-toggle@{udd\-\_\-reset\-\_\-data\-\_\-toggle}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-reset\-\_\-data\-\_\-toggle}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-reset\-\_\-data\-\_\-toggle(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uecon0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-C\-O\-N0\-S\-E\-T\-\_\-\-R\-S\-T\-D\-T\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_af8215756ce1ffa8c2ae43bd44cd1b5ca}


resets the data toggle sequence 

\hypertarget{usbc__device_8h_ad104658f522a2947eac3ea93ec460ca9}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-reset\-\_\-endpoint@{udd\-\_\-reset\-\_\-endpoint}}
\index{udd\-\_\-reset\-\_\-endpoint@{udd\-\_\-reset\-\_\-endpoint}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-reset\-\_\-endpoint}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-reset\-\_\-endpoint(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)}}
\label{usbc__device_8h_ad104658f522a2947eac3ea93ec460ca9}
{\bfseries \-Value\-:}
\begin{DoxyCode}
(Set_bits(AVR32_USBC.uerst, AVR32_USBC_UERST_EPRST0_MASK << (ep)),\
                                                   Clr_bits(AVR32_USBC.uerst, 
      AVR32_USBC_UERST_EPRST0_MASK << (ep)))
\end{DoxyCode}


resets the selected endpoint 

\hypertarget{usbc__device_8h_a36dbb0f364c02ce1f3e8606063278824}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn}}
\index{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-ctn(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count}}
\label{usbc__device_8h_a36dbb0f364c02ce1f3e8606063278824}
\hypertarget{usbc__device_8h_a0c540ab90d24659e8fb8646b6341c1d4}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size}}
\index{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-get\-\_\-buf0\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size}}
\label{usbc__device_8h_a0c540ab90d24659e8fb8646b6341c1d4}
\hypertarget{usbc__device_8h_a3d1c7b214972a5b48448d63174913a0c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn}}
\index{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-ctn(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count = 0}}
\label{usbc__device_8h_a3d1c7b214972a5b48448d63174913a0c}
\hypertarget{usbc__device_8h_a1b918dae2ab647e3ca3139e3fa1bd835}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size}}
\index{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-rst\-\_\-buf0\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size = 0}}
\label{usbc__device_8h_a1b918dae2ab647e3ca3139e3fa1bd835}
\hypertarget{usbc__device_8h_a18bc2b2f31d1aa60873c324c03a2dd2a}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr}}
\index{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-addr(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{buf}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.endpoint\-\_\-pipe\-\_\-address = buf}}
\label{usbc__device_8h_a18bc2b2f31d1aa60873c324c03a2dd2a}
\hypertarget{usbc__device_8h_adf40824e97da4c3c7cc651427bd2370c}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp}}
\index{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-autozlp(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{val}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-auto\-\_\-zlp = val}}
\label{usbc__device_8h_adf40824e97da4c3c7cc651427bd2370c}
\hypertarget{usbc__device_8h_a33dbd2726ba58e81114c5a025548e479}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn}}
\index{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-ctn(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{size}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-byte\-\_\-count = size}}
\label{usbc__device_8h_a33dbd2726ba58e81114c5a025548e479}
\hypertarget{usbc__device_8h_a3c3cec924aa661853b77c7bfa217f5f8}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size}}
\index{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size@{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-udesc\-\_\-set\-\_\-buf0\-\_\-size(
\begin{DoxyParamCaption}
\item[{}]{ep, }
\item[{}]{size}
\end{DoxyParamCaption}
)~udd\-\_\-g\-\_\-ep\-\_\-table\mbox{[}ep$\ast$2\mbox{]}.\-S\-I\-Z\-E\-S.\-multi\-\_\-packet\-\_\-size = size}}
\label{usbc__device_8h_a3c3cec924aa661853b77c7bfa217f5f8}
\hypertarget{usbc__device_8h_aa522e5e1d2f1d10c0e594b45cf7b8497}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!udd\-\_\-unforce\-\_\-bank\-\_\-interrupt@{udd\-\_\-unforce\-\_\-bank\-\_\-interrupt}}
\index{udd\-\_\-unforce\-\_\-bank\-\_\-interrupt@{udd\-\_\-unforce\-\_\-bank\-\_\-interrupt}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{udd\-\_\-unforce\-\_\-bank\-\_\-interrupt}]{\setlength{\rightskip}{0pt plus 5cm}\#define udd\-\_\-unforce\-\_\-bank\-\_\-interrupt(
\begin{DoxyParamCaption}
\item[{}]{ep}
\end{DoxyParamCaption}
)~(\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(uesta0set,ep) = \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-E\-S\-T\-A0\-S\-E\-T\-\_\-\-N\-B\-U\-S\-Y\-B\-K\-S\-\_\-\-M\-A\-S\-K)}}
\label{usbc__device_8h_aa522e5e1d2f1d10c0e594b45cf7b8497}


unforces all banks full (\-O\-U\-T) or free (\-I\-N) interrupt 

\hypertarget{usbc__device_8h_add60165f4e021c5e08c9b647e65496c8}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg@{\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg}}
\index{\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg@{\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-Usb\-\_\-set\-\_\-desc\-\_\-tab\-\_\-addr\-\_\-reg(
\begin{DoxyParamCaption}
\item[{}]{addr}
\end{DoxyParamCaption}
)~(\-Wr\-\_\-bitfield(\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-udesc, \-A\-V\-R32\-\_\-\-U\-S\-B\-C\-\_\-\-U\-D\-E\-S\-C\-\_\-\-M\-A\-S\-K, addr))}}
\label{usbc__device_8h_add60165f4e021c5e08c9b647e65496c8}
\hypertarget{usbc__device_8h_a944621405e4cada2a5758a20c890cc73}{
\index{usbc\-\_\-device.\-h@{usbc\-\_\-device.\-h}!\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y@{\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y}}
\index{\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y@{\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y}!usbc_device.h@{usbc\-\_\-device.\-h}}
\subsubsection[{\-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y}]{\setlength{\rightskip}{0pt plus 5cm}\#define \-U\-S\-B\-C\-\_\-\-A\-R\-R\-A\-Y(
\begin{DoxyParamCaption}
\item[{}]{reg, }
\item[{}]{index}
\end{DoxyParamCaption}
)~((\&\-A\-V\-R32\-\_\-\-U\-S\-B\-C.\-reg)\mbox{[}(index)\mbox{]})}}
\label{usbc__device_8h_a944621405e4cada2a5758a20c890cc73}
\-Generic macro for \-U\-S\-B\-C registers that can be arrayed 